public class ConstructorExercise {
    public static void main(String[] args) {
        Person person = new Person();
        Person person1 = new Person("马可", 22);
    }
}
class Person {
    String name;
    int age;
    Person() {
        System.out.println("无参构造器调用！");
        age = 18;
    }
    public Person(String pName, int pAge) {
        System.out.println("有参构造器调用！");
        name = pName;
        age = pAge;
    }
}
